package com.ljx.funchat.websocket.service;

import com.ljx.funchat.websocket.domain.vo.resp.WSBaseResp;
import io.netty.channel.Channel;

import java.util.List;

public interface WebSocketService {

    void connect(Channel channel);

    void handleLoginReq(Channel channel);

    void offline(Channel channel);

    void scanLoginSuccess(Integer code, Long id);

    void waitAuthorize(Integer code);

    void authorize(Channel channel, String data);

    void sendToUid(Long uid, WSBaseResp<?> buildMsgSend);

    void sendToAllOnline(WSBaseResp<?> resp);
}
